﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Workflows.Components.TextMining.Clustering
{
    /// <summary>
    /// determine how pure a cluster is, this is often used 
    /// to evaluate clustering results
    /// </summary>
    public interface IPurityCalculator
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="termFrequencies">term id -> count</param>
        /// <returns>range of [0-1) where 0=pure</returns>
        double CalculatePurityScore(Dictionary<int, int> termFrequencies);
    }
}
